package com.yunlongcoding.cahuomarketing.param;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by IntelliJ IDEA.
 *
 * 自定义扩展小程序会员信息参数
 *
 * @author 王云龙
 * @version 1.0
 * @date 7/13/2018  5:42 PM
 */
public class ChmMemberParams implements Serializable {
    private static final long serialVersionUID = -7177399122261538757L;

    // 会员表主键id
    private Long id;

    // 二维码分享人id，当前用户的上一级，如果为0或null，则是顶级，他的上一级就是擦火商城本身。
    private Long parentId;

    // 当前会员所有上级id路径，从根节点到当前节点的id拼接字符串，比如1>2>3>4>5>6
    private String idPath;

    // 当前会员节点的深度，表示当前会员是第多少级
    private Long currentDepth;

    // 用户名（对应微信用户昵称nickName）
    private String username;

    // 密码，因为直接微信登陆，所以可以为空
    private String password;

    // 会员状态（0：正常 1：冻结 2：删除）
    private Short status;

    // 手机号
    private String phoneNumber;

    // 会员头像（对应微信用户头像avatarUrl,用户头像，最后一个数值代表正方形头像大小（有0、46、64、96、132数值可选，
    // 0代表132*132正方形头像），用户没有头像时该项为空。若用户更换头像，原有头像URL将失效。）
    private String headportrait;

    // 会员所在国家（微信里面设置的国家）
    private String country;

    // 会员所在省（微信里面设置的省）
    private String province;

    // 会员所在城市（微信里面设置的城市）
    private String city;

    // 会员微信openid（会员的唯一标识）
    private String openId;

    // 页面授权code
    private String code ;

    // 用户性别（对应微信用户性别gender），0：未知  1：男  2：女
    private Short gender;

    // 用户微信语言（对应微信用户的语言，简体中文为zh_CN）
    private String language;

    // 注册时间（第一次登陆时间）
    private Date createTime;

    // 更新时间
    private Date updateTime;


    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getIdPath() {
        return idPath;
    }

    public void setIdPath(String idPath) {
        this.idPath = idPath;
    }

    public Long getCurrentDepth() {
        return currentDepth;
    }

    public void setCurrentDepth(Long currentDepth) {
        this.currentDepth = currentDepth;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Short getStatus() {
        return status;
    }

    public void setStatus(Short status) {
        this.status = status;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getHeadportrait() {
        return headportrait;
    }

    public void setHeadportrait(String headportrait) {
        this.headportrait = headportrait;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Short getGender() {
        return gender;
    }

    public void setGender(Short gender) {
        this.gender = gender;
    }

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }









    //======================================以下为自定义扩展属性======================================//

    // 进入小程序途径类型（0：扫描分享人二维码，1：搜索小程序名称或者扫描小程序二维码直接进入。）
    private int enterType ;

    public int getEnterType() {
        return enterType;
    }

    public void setEnterType(int enterType) {
        this.enterType = enterType;
    }


    @Override
    public String toString() {
        return "ChmMemberParams{" +
                "id=" + id +
                ", parentId=" + parentId +
                ", idPath='" + idPath + '\'' +
                ", currentDepth=" + currentDepth +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", status=" + status +
                ", phoneNumber='" + phoneNumber + '\'' +
                ", headportrait='" + headportrait + '\'' +
                ", country='" + country + '\'' +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", openId='" + openId + '\'' +
                ", gender=" + gender +
                ", language='" + language + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", enterType=" + enterType +
                '}';
    }
}
